﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using System.Web.Security;
namespace spk_eAuction.WebControls
{
    public partial class CoinInfo : System.Web.UI.UserControl
    {
        public string UserID
        {
            get;
            set;
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            HiddenField1.Value = Membership.GetUser().ProviderUserKey.ToString();
        }

        protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e)
        {
            Label LabelAmount = e.Row.FindControl("LabelAmount") as Label;
            if (LabelAmount == null)
                return;
            if (LabelAmount.Text == "" || LabelAmount.Text == null)
                LabelAmount.Text = "0";
            LabelAmount.Text = String.Format("x {0}", LabelAmount.Text);
        }

    }
}